Use gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
authorMatthias Clasen <mclasen@redhat.com>
Mon, 8 Nov 2004 20:43:59 +0000 (20:43 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 8 Nov 2004 20:43:59 +0000 (20:43 +0000)
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use
gtk_widget_{hide,show} instead of g_object_set (..."visible"...).

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkaction.c

index 614ed7cd2c72d05646237cd394ca2230ed73a497..d113e2d47aed2083b108200eddccf4c1c11a3bc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use 
+       gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
+
        * tests/testfilechooserbutton.c (main): Disable the SAVE 
        and CREATE_FOLDER modes.  (#157675, Christian Persch)
 
index 614ed7cd2c72d05646237cd394ca2230ed73a497..d113e2d47aed2083b108200eddccf4c1c11a3bc7 100644 (file)
@@ -1,5 +1,8 @@
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use 
+       gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
+
        * tests/testfilechooserbutton.c (main): Disable the SAVE 
        and CREATE_FOLDER modes.  (#157675, Christian Persch)
 
index 614ed7cd2c72d05646237cd394ca2230ed73a497..d113e2d47aed2083b108200eddccf4c1c11a3bc7 100644 (file)
@@ -1,5 +1,8 @@
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use 
+       gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
+
        * tests/testfilechooserbutton.c (main): Disable the SAVE 
        and CREATE_FOLDER modes.  (#157675, Christian Persch)
 
index 614ed7cd2c72d05646237cd394ca2230ed73a497..d113e2d47aed2083b108200eddccf4c1c11a3bc7 100644 (file)
@@ -1,5 +1,8 @@
 2004-11-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use 
+       gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
+
        * tests/testfilechooserbutton.c (main): Disable the SAVE 
        and CREATE_FOLDER modes.  (#157675, Christian Persch)
 
index d154b9582d625e7e1f5ee14587df468237f93906..abd1a718ebc75acf2734f0685a0f9ea59c5cc3eb 100644 (file)
@@ -665,9 +665,10 @@ _gtk_action_sync_menu_visible (GtkAction *action,
   visible = gtk_action_is_visible (action);
   hide_if_empty = action->private_data->hide_if_empty;
 
-  g_object_set (G_OBJECT (proxy),
-               "visible", visible && !(empty && hide_if_empty),
-               NULL);
+  if (visible && !(empty && hide_if_empty))
+    gtk_widget_show (proxy);
+  else
+    gtk_widget_hide (proxy);
 }
 
 gboolean _gtk_menu_is_empty (GtkWidget *menu);